Conversation
|
@rmorshea I'm realizing a limitation with IDOM Core's Currently, because event handlers can't be JavaScript strings in IDOM core, inline events cannot be serialized into VDOM. For example, |
|
@Archmonger, that's actually more of an issue with React. If you assign |
|
I would say this is ends up being a pretty big limitation. When working within JavaScript frameworks, this issue doesn't really exist. I can't think of a safe way of fixing this. cough Even our existing Might want to document the limitation in core, probably within the |
|
On a different note, I think the revised tests for script, request, args, and kwargs are solid. |
Changelog
view_to_componentutility that supports both async and sync views. Views can be function or classes.srcanincludesfoldersview_to_componentIMPORTANT NOTE
This PR does not add automatic handling of things such as href click events or form submission. Currently
compatibility=Trueis required to get href and forms to work.This is a desirable behavior that should be implemented in a future PR as a toggleable option.
In the future
view_to_componentshould be able to automatically perform any URL routing/re-rendering that is needed. The VDOM component should essentially "act as if it's an iframe", despite it being VDOM.Remaining Todo: